﻿using Newtonsoft.Json;
using System.Web.Mvc;

namespace QunProject.Web.Controllers
{
    public class ComplainController : BaseController
    {
        /// <summary>
        /// 投诉
        /// </summary>
        /// <param name="type">投诉类型（枚举）</param>
        /// <param name="objId">被投诉对象ID</param>
        /// <param name="content">投诉内容</param>
        /// <returns></returns>
        public JsonResult EditComplainResult(int type, int objId, string content)
        {
            var paras = WeaveParameters<ComplainController>("EditComplainResult");
            var result = HttpPost("EditComplainResult", JsonConvert.SerializeObject(paras));
            return Json(result);
        }
    }
}